/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
// this class is  not using
//package com.globussoft.xml;

/**
 *
 * @author Dj
 */
/*import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.Element;
import java.io.File;

public class XMLReader {

public XMLReader()
{
  try {
      // URL mySource = XmlGeneralStore.class.getProtectionDomain().getCodeSource().getLocation();
      File sourceFile = new File(".");



     // attach text file to application directory(.class file)
      String xmlfile = sourceFile.getAbsolutePath()+"\\"+"generalsettings.xml";
	  File fXmlFile = new File(xmlfile);
      if(fXmlFile.isFile())
      {
	  DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
	  DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
	  Document doc = dBuilder.parse(fXmlFile);
	  doc.getDocumentElement().normalize();

	 // System.out.println("General Settings :" + doc.getDocumentElement().getNodeName());
	  NodeList nList = doc.getElementsByTagName("General");
	//  System.out.println("-----------------------");

	  for (int temp = 0; temp < nList.getLength(); temp++) {

	    Node nNode = nList.item(temp);

	    if (nNode.getNodeType() == Node.ELEMENT_NODE) {

	      Element eElement = (Element) nNode;

	     System.out.println("Status : "  + getTagValue("Status",eElement));
	     System.out.println("Quota-warning : "  + getTagValue("Quota_Warning",eElement));
	     System.out.println("Alert-days : "  + getTagValue("Alert_Days",eElement));
	     
	    }
      }
    }
  } catch (Exception e) {
    e.printStackTrace();
  }

}

 private static String getTagValue(String sTag, Element eElement)
 {
	  NodeList nlList= eElement.getElementsByTagName(sTag).item(0).getChildNodes();
	  Node nValue = (Node) nlList.item(0);

	  return nValue.getNodeValue();

 }

  public static void main(String argv[])
  {
      XMLReader xmlreader=new XMLReader();
  }

}*/